package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.DomainModelStateDao;
import sjtu.ist.warehouse4ws.dao.cust.CustDomainModelStateDao;
import sjtu.ist.warehouse4ws.model.CustDomainmodelstate;

public class CustDomainModelStateServiceImpl implements CustDomainModelStateService{
	private CustDomainModelStateDao custDomainModelStateDao;

	@Override
	public List<CustDomainmodelstate> getCustDomainModelStateList(
			String custDomainModelId) {
		// TODO Auto-generated method stub
		return (List<CustDomainmodelstate>)custDomainModelStateDao.findAllCustDomainModelStates(custDomainModelId);
	}
	//依赖注入DAO组件的setter方法
	public void setCustDomainModelStateDao(
			CustDomainModelStateDao custDomainModelStateDao) {
		this.custDomainModelStateDao = custDomainModelStateDao;
	}

	@Override
	public void savaCustDomainmodelstate(
			CustDomainmodelstate custDomainmodelstate) {
		// TODO Auto-generated method stub
		custDomainModelStateDao.savaCustDomainmodelstate(custDomainmodelstate);
		
	}

}
